package file;

import java.io.File;

//文件重命名
public class Demo5 {
    public static void main(String[] args) {
        File file = new File("./test.txt");
        File file1 = new File("./test2.txt");
        file.renameTo(file1);
    }
}
